package com.acme.biz.api.model;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class User {
    @NotNull(message = "id不能为空")
    private Long id;

    //@NotBlank(message = "name不能为空")
    @NotEmpty(message = "name不能为空")
    private String name;
}
